package com.code.util;

import java.util.Map;

public class MapPageUtil {
	
	public static void packageMapPage(Map<String, Object> map, Integer start, Integer limit) {
		Integer pageRow = (Integer) map.get("pageRow");
		
		map.put("start", start);
		map.put("limit", limit);
		map.put("pageRow", pageRow);
		map.put("curPage", start / limit + 1);
		map.put("beginRow", start / limit * pageRow);
	}
	
}
